#include <accelerometer.h>
#include <display.h>
#include <h01.h>

uint	curSteps;
uint	timer;
ushort	error;
ushort	flags;
ubyte	clrSteps;
ubyte	status;
SAVE	savRam;
REPORTS reports={RPT_VERSION,0x0002,
	RPT_TICKLO,0,	RPT_TICKHI,0,
	RPT_OFFSETLO,0,	RPT_OFFSETHI,0,
	RPT_VOLTB,0,	RPT_VOLTC,0,
	RPT_CURRENTLO,0,RPT_CURRENTHI,0,
	RPT_YESTDAYLO,0,RPT_YESTDAYHI,0,
};

void main(void){
	booting();
	//initAccelerometer();
	displayOn();
	outBar(1);
	while(1){
		outDec(curSteps);
		if(getStatus()==STATUS_TAP){
			timer=0;
			while(timer<200){
				outBar(19);
				getStatus();
			}
		}
	}
}